package com.okta.sdk;

import com.okta.sdk.clients.AuthApiClient;
import com.okta.sdk.clients.SessionApiClient;
import com.okta.sdk.clients.UserApiClient;
import com.okta.sdk.clients.UserGroupApiClient;
import com.okta.sdk.framework.ApiClientConfiguration;

/**
 * Created by jonathan on 2017/2/15 0015.
 */
public class OktaSdk {
    private AuthApiClient authApiClient;
    private UserApiClient userApiClient;
    private SessionApiClient sessionApiClient;
    private UserGroupApiClient userGroupApiClient;

    public OktaSdk(ApiClientConfiguration apiClientConfiguration) {
        authApiClient = new AuthApiClient(apiClientConfiguration);
        userApiClient = new UserApiClient(apiClientConfiguration);
        sessionApiClient = new SessionApiClient(apiClientConfiguration);
        userGroupApiClient = new UserGroupApiClient(apiClientConfiguration);
    }

    public AuthApiClient getAuthApiClient() {
        return authApiClient;
    }

    public UserApiClient getUserApiClient() {
        return userApiClient;
    }

    public SessionApiClient getSessionApiClient() {
        return sessionApiClient;
    }

    public UserGroupApiClient getUserGroupApiClient() {
        return userGroupApiClient;
    }
}
